package cn.mumzone.pos.api.service;


import java.util.HashMap;
import java.util.List;

import cn.mumzone.basic.net.response.BaseResponse;
import cn.mumzone.pos.model.DailyReportEntity;
import cn.mumzone.pos.model.ExceptionReportEntity;
import cn.mumzone.pos.model.GoodsClassifyEntity;
import cn.mumzone.pos.model.SalesVolumeEntity;
import okhttp3.RequestBody;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Author Chaney
 * Date   2017/3/7 上午11:15.
 * EMail  qiuzhenhuan.hi@gmail.com
 */
public interface ReportService {

    @GET("egg_order/api/v1/pos/report/getDailyReportByDate")
    Observable<Response<BaseResponse<DailyReportEntity>>> getDailyReportByDate(@Query("createTime") String createTime);


    @FormUrlEncoded
    @POST("egg_goods/api/v1.5/pos/report/orderSaleCounts")
    Observable<Response<BaseResponse<List<SalesVolumeEntity>>>> getSalesVolumeReportByDate(@FieldMap HashMap<String, String> requestMap);


    @GET("egg_order/api/v1/pos/businessDaily/exceptionBusiness")
    Observable<Response<BaseResponse<ExceptionReportEntity>>> getExceptionReportByDate(@Query("startDate") String startDate,
                                                                                       @Query("endDate") String endDate);


    @POST("egg_goods/api/v1.5/pos/report/goodsClassify")
    Observable<Response<BaseResponse<List<GoodsClassifyEntity>>>> getGoodsClassify(@Body RequestBody body);


}
